package com.cmcc.groupcontacts.firewall.adapter;

/**
 * Adapter异常类
 * 
 * @author 
 * 
 */
public class AdapterException extends RuntimeException {
	private static final long serialVersionUID = 4781970717393203078L;
	
	private int errorCode;

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}

	public int getErrorCode() {
		return errorCode;
	}

	public AdapterException(int errorCode) {
		super();
		this.errorCode = errorCode;
	}

	public AdapterException(String message) {
		super(message);
	}

	public AdapterException(Throwable cause) {
		super(cause);
	}

	public AdapterException(int errorCode, String message) {
		super(message);
		this.errorCode = errorCode;
	}

	public AdapterException(int errorCode, Throwable cause) {
		super(cause);
		this.errorCode = errorCode;
	}

	public AdapterException(String message, Throwable cause) {
		super(message, cause);
	}

	public AdapterException(int errorCode, String message, Throwable cause) {
		super(message, cause);
		this.errorCode = errorCode;
	}
}
